.item {
  position: relative;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0px 4px;
  cursor: pointer;
  .action {
    display: none;
    flex-grow: 0;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
    padding: 0px 5px 0px 3px;
    line-height: 28px;
    :global {
      .anticon {
        cursor: pointer;
      }
    }
  }
  &:hover {
    background-color: var(--hover-color);
    .action {
      display: flex;
    }
  }
  &.error {
    border-bottom: 1px solid var(--text-color-error);
    cursor: not-allowed;
    .label {
      color: var(--text-color-placeholder);
    }
  }
  &.uploading {
    border-bottom: 1px solid var(--text-color-link);
    cursor: progress;
    .label {
      color: var(--text-color-placeholder);
    }
  }
  &.active {
    background-color: var(--brand-blue2-color);
  }
}
.icon {
  flex: 0;
  margin-right: 4px;
}
.label {
  overflow: hidden;
  color: var(--text-color-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
  user-select: none;
  &.active {
    color: var(--icon-color-1);
  }
}
